<template>
  <div>
    <h1>熊二</h1>
    <h1>熊大给{{ info }}</h1>
    <xiao-xiong-er></xiao-xiong-er>
  </div>
</template>

<script>
import XiaoXiongEr from "./XiaoXiongEr";
export default {
  data() {
    return {
      info: "",
    };
  },
  mounted() {
    //接收传递过来的参数
    this.$eventBus.$on("fengmiguan", (msg) => {
      console.log(msg);
      this.info = msg;
    });
  },
  components: {
    XiaoXiongEr,
  },
};
</script>

<style lang="scss" scoped>
</style>